package Help.For.You.member.Impl;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import Help.For.You.Other.PageVO;
import Help.For.You.member.MemberVO;

@Controller
public class MemberController {
	
	@Resource(name = "MemberService")
	private MemberService memberService;	

	private Logger logger=Logger.getLogger(this.getClass());
	
	@RequestMapping(value="/member/viewlogin",method = RequestMethod.GET)
	public String GetViewLogin(PageVO pageVO,HttpSession session,Model model) {
		logger.info("GetViewLogin");
		return memberService.GetViewLogin(pageVO, session, model);
	}
	
	
	
	
	@RequestMapping(value="/member/actionlogin",method = RequestMethod.POST)
	public String PostActionLogin(MemberVO memberVO,PageVO pageVO,HttpSession session,Model model) {
		logger.info("PostActionLogin");
		return memberService.PostActionLogin(memberVO,pageVO,session, model);
	}
}
